import http from "@/api";
import { PORT1 } from "../../config/servicePort";
import qs from "qs";


export const getDictTreeApi = () => {
	return http.post(PORT1 + "/system/dictManage/query", {});
};

export const getDictListApi = (params?: any) => {
	return http.post(PORT1 + "/system/dictManage/list", params, {});
};

// 保存菜单
export const saveDictApi = (params: any) => {
	return http.post(PORT1 + "/system/dictManage/saveOrUpdate", params, {});
};

export const deleteDictApi = (params: any) => {
	return http.post(PORT1 + "/system/dictManage/remove", params, {});
};





